<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/vue@2.7.10/dist/vue.js"></script>
    <title>Document</title>
</head>
<body>
    <div id="btn">
        <h1>请选择英雄</h1>
        <ul>
            <li v-for="hero of heros">
                {{hero.name}}
                <span v-html="hero.butt"></span>
            </li>
        </ul>
    </div>
    <script>
        const vm = new Vue({
            el:"#btn",
            data:{
                heros:[
                    {
                        name:'娜可露露',
                        butt:'<button>选择</button>'
                    },
                    {
                        name:'貂蝉',
                        butt:'<button>选择</button>'
                    },
                    {
                        name:'韩信',
                        butt:'<button>选择</button>'
                    }
                ]
            }
        });
    </script>
</body>
</html>